package com.niiwoo.civet.trade.dto.response.myloan;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * 查询还款安排返回对象
 * @author liaojunjun
 *
 */
@Getter
@Setter
public class QueryRepaymentPlanResponseDTO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1890344892235675471L;
	
	private Byte repaymentType;
	
	private Byte bizType;
	
	private List<ProjectBorrowerPlanReponseDTO> borrowerPlanReponseDTOList;
	
	@Getter
	@Setter
	static public class ProjectBorrowerPlanReponseDTO implements Serializable {

		/**
		 * 
		 */
		private static final long serialVersionUID = 1439174059953414581L;

		/**
		 * 当期期数
		 */
		private Integer currentPeriod;

		/**
		 * 总期数
		 */
		private Integer totalPeriod;

		/**
		 * 应还款日期
		 */
		private String refundDate;
		
		/**
		 * 还款状态（1未还款，2已正常还款，3已逾期还款）
		 */
		private Byte refundStatus;
		
		/**
		 * 是否坏账
		 */
		private Boolean isBadDebt;
		
		/**
		 * 是否逾期
		 */
		private Boolean isOverdue;
		
		/**
		 * 是否提前结清
		 */
		private Boolean isEarlySettlement;
		
		/**
		 * 逾期天数
		 */
		private Integer overdueDay;
		
		/**
		 * 罚息
		 */
		private BigDecimal penaltyFee;
		
		/**
		 * 逾期描述
		 */
		private String overdueDesc; 

		/**
		 * 本金
		 */
		private BigDecimal capital;

		/**
		 * 利息
		 */
		private BigDecimal interest;

		/**
		 * 平台管理费
		 */
		private BigDecimal managementFee;
		
		/**
		 * 担保服务费
		 */
		private BigDecimal guaranteeFee;

		/**
		 * 结清时间
		 */
		private Date overTime;

		/**
		 *  已还本金
		 */
		private BigDecimal refundedCapital;

		/**
		 * 已还利息
		 */
		private BigDecimal refundedInterest;

		/**
		 * 已还平台管理费
		 */
		private BigDecimal refundedManagementFee;

		/**
		 * 已还罚息
		 */
		private BigDecimal refundedPenaltyFee;
		
		/**
		 * 已还担保服务费
		 */
		private BigDecimal refundedGuaranteeFee;

		/**
		 * 应还的总金额
		 */
		private BigDecimal needRepayAmount;

		/**
		 * 已还的总金额
		 */
		private BigDecimal paidAmount;

		/**
		 * 最早还款日期
		 */
		private Date earlistRepayTime;
	}

	
}
